﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common.Domain;
using YYSite.Domain.System.IdentityUsers;
using YYSite.Domain.System.Permissions;
using YYSite.Domain.System.Positions;
using YYSite.Domain.System.Roles;

namespace YYSite.Domain.System.UserPermissions
{
   public class UserPermission:EntityBase
    {
        public virtual Guid UserId { get; set; }

        public virtual Guid RoleId { get; set; }

        public virtual Guid PositionId { get; set; }

        public virtual Guid PermissionId { get; set; }

        public virtual bool HasGrant { get; set; }

  

        public virtual IdentityUser IdentityUser { get; set; }

        public virtual Role Role { get; set; }

        public virtual Position Position { get; set; }

        public virtual Permission Permission { get; set; }
    }
}
